package com.cbgolf.oa.event;


import com.cbgolf.oa.entity.Beans;
import com.cbgolf.oa.entity.ParkBean;
import com.cbgolf.oa.entity.TeeTimeBean.TeeTimesBean;
import java.util.ArrayList;
import java.util.List;

/**
 * @author lq
 */
public class Events {

  public int msgTarget;
  public int requestEvent;
  public String errorMsg;
  public int errorCode;

  public List<Beans> listData;
  public List<TeeTimesBean> listTeetime;
  public ArrayList<String> listString;

  public ParkBean parkBean;

  public long selectTime;

  public boolean isSuccess;

  private Events(Builder builder) {
    msgTarget = builder.msgTarget;
    requestEvent = builder.requestEvent;
    errorMsg = builder.errorMsg;
    errorCode = builder.errorCode;
    listData = builder.listData;
    listTeetime = builder.listTeetime;
    listString = builder.listString;
    parkBean = builder.parkBean;
    selectTime = builder.selectTime;
    isSuccess = builder.isSuccess;
  }


  public static final class Builder {

    private int msgTarget;
    private int requestEvent;
    private String errorMsg;
    private int errorCode;
    private List<Beans> listData;
    private List<TeeTimesBean> listTeetime;
    private ArrayList<String> listString;
    private ParkBean parkBean;
    private long selectTime;
    private boolean isSuccess;

    public Builder() {
    }

    public Builder msgTarget(int val) {
      msgTarget = val;
      return this;
    }

    public Builder requestEvent(int val) {
      requestEvent = val;
      return this;
    }

    public Builder errorMsg(String val) {
      errorMsg = val;
      return this;
    }

    public Builder errorCode(int val) {
      errorCode = val;
      return this;
    }

    public Builder listData(List<Beans> val) {
      listData = val;
      return this;
    }

    public Builder listTeetime(List<TeeTimesBean> val) {
      listTeetime = val;
      return this;
    }

    public Builder listString(ArrayList<String> val) {
      listString = val;
      return this;
    }

    public Builder parkBean(ParkBean val) {
      parkBean = val;
      return this;
    }

    public Builder selectTime(long val) {
      selectTime = val;
      return this;
    }

    public Builder isSuccess(boolean val) {
      isSuccess = val;
      return this;
    }

    public Events build() {
      return new Events(this);
    }
  }
}
